<table cellpadding="5">
	<input name="id" type="hidden" value="${(cmsInstructorItem.id)!}" />
	<tr style="height:140px;">
		<td class="tbLabel">姓名:</td>
		<td>
			<input name="name"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsInstructorItem.name)!}"/>
		</td>
		<td class="tbLabel">头像:</td>
		<td>
			<input id="cmsInstructorPohto" name="photoPath" type="hidden"  value="${(cmsInstructorItem.photoPath)!}"/>
			<div>
				<span id="uploadInstrPhoto"></span>
				<span id="uploadInstrPhotoShow">
				<#if cmsInstructorItem??>
				<img src="${cmsInstructorItem.photoPath!}" width="135" height="135"/>
				</#if>	
				</span>
			</div>
            <span style="display:none">
            	<input id="btnInstrPhotoCancel" type="button" value="取消全部上传" onclick="swfu.cancelQueue();" disabled="disabled" style="margin-left: 2px; font-size: 8pt; height: 22px;" />
           	</span>
		</td>
		<td class="tbLabel">导师等级:</td>
		<td>
			<@eu.comboBox required="true" name="insLevel" url="common.do?loadComboBox&key=CMS_MENTOR_LEVEL&value=${(cmsInstructorItem.insLevel)!}" />
		</td>
		<td class="tbLabel">导师类别:</td>
		<td>
			<@eu.comboBox required="true" name="instructorType" url="common.do?loadComboBox&key=CMS_MENTOR_TYPE&value=${(cmsInstructorItem.instructorType)!}" />
		</td>
		<td>
		</td>
	</tr>
	<tr>
		<td class="tbLabel">联系电话:</td>
		<td>
			<input name="tel"  class="easyui-validatebox textbox" data-options="required: true" value="${(cmsInstructorItem.tel)!}"/>
		</td>
		<td class="tbLabel">任职大学:</td>
		<td>
			<@eu.comboBox required="true" name="universityCode" url="common.do?loadComboBox&key=CMS_UNIVERSITY_CODE&value=${(cmsInstructorItem.universityCode)!}" />
		</td>
		<td class="tbLabel">所属城市:</td>
		<td>
			<@eu.comboBox name="insLocation" url="common.do?loadComboBox&key=MATCH_AREA_CODE&value=${(cmsInstructorItem.insLocation)!}" />
		</td>
		
		<td class="tbLabel">所属单位:</td>
		<td>
			<input name="company"  class="easyui-validatebox textbox" data-options="required: true" value="${(cmsInstructorItem.company)!}"/>
		</td>
		
	</tr>
	<tr>
		<td class="tbLabel">技术领域:</td>
		<td colspan="5">
			<input name="technicalField" style="width:700px;"  class="easyui-validatebox textbox" data-options="required: true" value="${(cmsInstructorItem.technicalField)!}"/>
		</td>
		<td class="tbLabel">在职职位:</td>
		<td>
			<input name="position"  class="easyui-validatebox textbox" data-options="required: true" value="${(cmsInstructorItem.position)!}"/>
		</td>
	</tr>
	<tr>
		<td class="tbLabel">辅导特长:</td>
		<td colspan="5">
			<input name="coachingSkills" style="width:700px;"  class="easyui-validatebox textbox" data-options="required: true" value="${(cmsInstructorItem.coachingSkills)!}"/>
		</td>
		<td class="tbLabel">邮箱:</td>
		<td>
			<input name="email"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsInstructorItem.email)!}"/>
		</td>
	</tr>
	<tr>
		<td class="tbLabel">单位类型:</td>
		<td>
			<input name="companyType"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsInstructorItem.companyType)!}"/>
		</td>
		<td class="tbLabel">单位规模:</td>
		<td>
			<input name="companyScale"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsInstructorItem.companyScale)!}"/>
		</td>
		
		<td class="tbLabel">荣誉称号:</td>
		<td colspan="3">
			<input name="hasDesignation"  style="width:400px;" class="easyui-validatebox textbox" data-options="required: true" value="${(cmsInstructorItem.hasDesignation)!}"/>
		</td>
	</tr>
	<tr>
		<td class="tbLabel">个人简历:</td>
		<td colspan="7">
			<textarea rows="10" cols="50" id="cmsInstructorResume" name="insResume">${(cmsInstructorItem.insResume)!''}</textarea>
		</td>
	</tr>
</table>
<script>
CKEDITOR.replace('cmsInstructorResume');

var swfInstrPhoto = new SWFUpload({
	flash_url : "static/plugins/swfupload/swfupload.swf",
   upload_url: "common.do?uploadFile",
   file_post_name:"filedata",
   post_params: {"name" : "zwm"},
   use_query_string:true,
    file_size_limit : "10 MB",
       file_types : "*.jpg;*.gif;*.png;*.bmp",    //这是全部文件都可以上传，如果要限制只有某些文件上传，则可以这么写 file_types : "*.jpg;*.gif;*.png",
       file_types_description : "图片",
//        file_upload_limit : 1,
       file_queue_limit : 0,
       custom_settings : {
           progressTarget : "fsUploadProgress",
           cancelButtonId : "btnInstrPhotoCancel"
       },

       button_image_url : "static/plugins/swfupload/swfbtn.png",
 		button_placeholder_id : "uploadInstrPhoto",
 		button_text: "<span class='abtn'>上传头像</span>",
 		button_window_mode:"transparent",
 		button_width: 80,
 		button_height: 24,
 		button_text_left_padding: 22,
 		button_text_top_padding: 2,
       // The event handler functions are defined in handlers.js
       file_queued_handler : fileQueued,
       file_queue_error_handler : fileQueueError,
       file_dialog_complete_handler : fileDialogComplete,
       upload_error_handler : uploadError,
       upload_success_handler : uploadInstrPhotoSuccess,
       upload_complete_handler : uploadComplete,
       queue_complete_handler : queueComplete    // Queue plugin event
});

function uploadInstrPhotoSuccess(file,rs) {
	 
	  var json = eval('(' + rs + ')');
	  $('#uploadInstrPhotoShow').html('<img src="'+json.obj+'" width="135" height="136"/>');	
	  $('#cmsInstructorPohto').val(json.obj);
	}
</script>
